<!DOCTYPE html>
<%@page import="ansi.modelo.Residente"%>
<%@page import="java.util.Collection"%>
<%@page import="ansi.modelo.Queja"%>
<%@page import="ansi.dao.*"%>
<html lang="en">
	<jsp:include page="cabeceraHead.jsp"></jsp:include>
<body>
	<jsp:include page="cabeceraMenu.jsp"></jsp:include>
	  
	  <div class="container">

<p><strong><b>REGISTRO DE QUEJAS</b></strong></p>

<form id="form1" name="form1" method="post" action="RegistrarResidenteServlet">>
<BR>
<br>
	<table align="center">
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td>Nro. de queja:</td>
			<td>&nbsp;
	      &lt;correlativo&gt;
				</td>
		</tr>
		<tr>
			<td> Propietario:</td>
			<td>&nbsp;
				<select name="cbopropietario" width=250 value="listarresidente">
					<%
					Collection<Residente> listResidente	= (Collection<Residente>)request.getAttribute("listResidente");
					if(listResidente != null) for(Residente residente:listResidente) { %>
						<option value="<%=residente.getDNI_Residente() %>"><%=residente.getNombre_Residente() %></option>
					<%}%>
				</select>
			</td>
		</tr>
		<tr>
			<td>Tipo de queja:</td>
			<td>
				<select name="cboqueja" width=250>
					<option>Mantenimiento</option>
					<option>Seguridad</option>
					<option>Reservas</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>Fecha:</td>
			<td>
				<input type="datetime" name="txtfecha" id="txtfecha" width: 176px; ">
			</td>
		</tr>
		<tr>
			<td>Motivo:</td>
			<td>
				<textarea style="width: 247px; height: 71px" name="txtmotivo"></textarea>
			</td>
		</tr>
		
		<tr>
			 <td colspan="2">
        <input type="submit" value="Guardar" />
           <input type="button" value="Regresar" onclick="window.location='ListarQueja.jsp' " />
		</tr>
	</table>
	</form>
	
	
	 <!-- Site footer -->
	   <div class="footer" align="center">
	   	 <p>&nbsp;</p>
	   
	     <p>Grupo ANSI &copy; </p>
	   </div>
	   
	 </div> <!-- /container -->
    
   


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    
     <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<!--     <script src="js/jquery-1.10.2.js"></script> -->
    <!-- Include all compiled plugins (below), or include individual files as needed -->
<!--     <script src="js/bootstrap.js"></script> -->
  </body>

</html>